package com.yswee.mallnavi.entity.info;

import com.caverock.androidsvg.utils.SVGBase;
import com.yswee.mallnavi.entity.BaseEntity;

public class MapEntity extends BaseEntity implements Comparable<MapEntity> {

    public String id;
    public String title;
    // 0为品牌,1为设施
    public int bizType;
    public String bizId;
    public String mapId;
    public String logo;
    public String descrption;

    public SVGBase.NodeLevel nodeLevel;

    @Override
    public int compareTo(MapEntity o) {
        if(o == null || o.nodeLevel == null) {
            return 1;
        }
        if (this.nodeLevel == null) {
            return 1;
        }
        if (o.nodeLevel.level == this.nodeLevel.level) {
            return this.nodeLevel.index - o.nodeLevel.index;
        } else {
            return this.nodeLevel.level - o.nodeLevel.level;
        }
    }
}

